package com.jp.juc.base;

public class JvmShutdownHook {
    public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(new HookThread());
        System.out.println("test");
    }


    public static class HookThread extends Thread {
        @Override
        public void run() {
            System.out.println("==HookThread==");
        }
    }
}

